import request from '@/utils/request'

// 查询团队成员列表
export function listATeamInfo(query) {
  return request({
    url: '/system/aTeamInfo/list',
    method: 'get',
    params: query
  })
}

export function listATeamInfos(query) {
  return request({
    url: '/system/aTeamInfo/lists',
    method: 'get',
    params: query
  })
}


// 查询团队成员详细
export function getATeamInfo(id) {
  return request({
    url: '/system/aTeamInfo/' + id,
    method: 'get'
  })
}

// 新增团队成员
export function addATeamInfo(data) {
  return request({
    url: '/system/aTeamInfo',
    method: 'post',
    data: data
  })
}

// 修改团队成员
export function updateATeamInfo(data) {
  return request({
    url: '/system/aTeamInfo',
    method: 'put',
    data: data
  })
}

export function handleupteAgent(data) {
  return request({
    url: '/system/aTeamInfo/handleupteAgent',
    method: 'put',
    data: data
  })
}



// 删除团队成员
export function delATeamInfo(id) {
  return request({
    url: '/system/aTeamInfo/' + id,
    method: 'delete'
  })
}

// 增加团队成员
export function addTeamInfors(id) {
  return request({
    url: '/system/aTeamInfo/addTeamInfors/' + id,
    method: 'put'
  })
}
